home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 8 / Revista CD Expert nº 08 CD1.iso / Utilitarios / Programacao / Pacific C for DOS / INCLUDE / SIGNAL.H < prev    next >
C/C++ Source or Header  |  1995-03-08  |  1KB  |  36 lines

  1. /*
  2.  *    Signal definitions for CP/M
  3.  */
  4. #if    defined(unix) || defined(ATDOS)
  5.  
  6. #if    m68k
  7. #define    NSIG    32
  8. #else
  9. #define NSIG 17
  10. #endif
  11.  
  12. #define    SIGHUP    1    /* hangup    (not used by terminal driver) */
  13. #define    SIGINT    2    /* interrupt (^C or BREAK) */
  14. #define    SIGQUIT    3    /* quit      (^\) */
  15. #define    SIGILL    4    /* illegal instruction (not reset when caught) */
  16. #define    SIGTRAP    5    /* trace trap (not reset when caught) */
  17. #define    SIGIOT    6    /* IOT instruction */
  18. #define    SIGEMT    7    /* EMT instruction */
  19. #define    SIGMSG    7    /* message received */
  20. #define    SIGFPE    8    /* floating point exception */
  21. #define    SIGKILL    9    /* kill (cannot be caught or ignored) */
  22. #define    SIGBUS    10    /* bus error */
  23. #define    SIGSEGV    11    /* segmentation violation */
  24. #define    SIGSYS    12    /* bad argument to system call */
  25. #define    SIGPIPE    13    /* write on a pipe with no one to read it */
  26. #define    SIGALRM    14    /* alarm clock */
  27. #define    SIGTERM    15    /* software termination signal from kill */
  28. #else    /* unix || ATDOS */
  29. #define    SIGINT    1        /* control-C */
  30. #endif    /* unix || ATDOS */
  31.  
  32. #define    SIG_DFL    ((void (*)(int))0)    /* default action is to exit */
  33. #define    SIG_IGN    ((void (*)(int))1)    /* ignore them */
  34.  
  35. extern void (*    signal(int, void (*)(int)))(int);
  36.